<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
    /**
     * 查看分类详情
     */
    function detailInfo(id){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/cityCourier/getCityCourierInfo.sjson",
            data: {id:id},
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_cityCourierName").html(data.cityCourier.cityCourierName);
                $("#d_responsibleAreas").html(data.district.fullName);
                $("#d_phone").html(data.cityCourier.phone);
                $("#d_address").html(data.cityCourier.address);
                $("#d_cardIdNo").html(data.cityCourier.cardIdNo);
                $("#d_introducer").html(data.cityCourier.introducer);
                if(data.cityCourier.entryTime!=""&&data.cityCourier.entryTime!=undefined){
                    $("#d_entryTime").html(new Date(data.cityCourier.entryTime).Format("yyyy-MM-dd"));
                }
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">同城快递详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">快递员姓名:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_cityCourierName"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">责任区域:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_responsibleAreas"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">联系电话:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_phone"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">联系地址:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_address"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">身份证号:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_cardIdNo"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">入职时间:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_entryTime"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">介绍人:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_introducer"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
